<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>输⼊⼀串整数且类型是 Number，统计该整数有多少个数字，如下：1000 ➞ 4</title>
</head>

<body>
  <script>
    var i = 1000
    i = i.toString()
    console.log(i.length);
  </script>
</body>

</html>